package com.csj.mvvmtest.ui.demo.db;

import org.litepal.crud.LitePalSupport;

public class Car extends LitePalSupport {
    public long id;
    public String carName;//名称
    public CarBase carBase;//基本参数
    public CarBody carBody;//车身
    public CarEngine carEngine;//发动机
    public CarGearbox carGearbox;//变速箱

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public CarBase getCarBase() {
        return carBase;
    }

    public void setCarBase(CarBase carBase) {
        this.carBase = carBase;
    }

    public CarBody getCarBody() {
        return carBody;
    }

    public void setCarBody(CarBody carBody) {
        this.carBody = carBody;
    }

    public CarEngine getCarEngine() {
        return carEngine;
    }

    public void setCarEngine(CarEngine carEngine) {
        this.carEngine = carEngine;
    }

    public CarGearbox getCarGearbox() {
        return carGearbox;
    }

    public void setCarGearbox(CarGearbox carGearbox) {
        this.carGearbox = carGearbox;
    }

    @Override
    public String toString() {
        return "Car{" +
                "id=" + id +
                ", carName='" + carName + '\'' +
                ", carBase=" + carBase +
                ", carBody=" + carBody +
                ", carEngine=" + carEngine +
                ", carGearbox=" + carGearbox +
                '}';
    }
}
